<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<h:head>
		<title>Nova Estado</title>
	</h:head>
	<h:body>
	
	<table width="100%">
		<tr>
			<td><ui:include src="menuPrincipal.xhtml" /></td>
		</tr>
	</table>
		<h:form id="incluirEstado">

			<table width="40%" align="center">
				<tr>
					<td>
						<p:panel header="Novo Estado">
							<h:panelGrid columns="2">

								<h:outputText value="País: " />
								<h:selectOneMenu value="#{estadoMB.paisSelecionado}">  
									  <f:selectItem itemLabel="Selecione" itemValue=""/>  
									  <f:selectItems value="#{estadoMB.selectItem}"> 
								</f:selectItems>
								</h:selectOneMenu>
								
								<h:outputText value="Nome Estado: " />
								<p:inputText value="#{estadoMB.estado.nome}" maxlength="40"
									size="30" title="Nome do País" />
									
								<h:inputHidden/>
								<h:message for="msgInclusaoEstado" id="mensagem" />	
					
					</h:panelGrid>
					</p:panel>
					</td>
				</tr>
			</table>
		</h:form>
	</h:body>
</html>
